package com.czk.model.decoratot.practice;

/**
 * @Author:ChenZhangKun
 * @Date: 2020/6/10 23:39
 */
public class BearBar {
    public static void main(String[] args) {
        // 一瓶勇闯
        DrinkPra bear=new BraveBear();
        System.out.println(bear.cost());
        // 加冰
        bear=new Ice(bear);
        System.out.println(bear.cost());
        // 加糖
        bear=new Sugar(bear);
        System.out.println(bear.cost());
    }
}
